package com.cucn.ingmall.auth.feign;

import com.cucn.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author KouChaoJie
 * @since: 2022/1/7 13:38
 */
@FeignClient("ingmall-third-party")
public interface ThirdPartyFeignService {

    /**
     * 提供给别的服务进行调用发送短信的方法
     *
     * @param phone 手机号
     */
    @GetMapping("/sms/sendcode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
